VT-d: Fix ia64 build for 20974:3b475d9ed6b5
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Feb 2010 11:54:19 +0000 (11:54 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Feb 2010 11:54:19 +0000 (11:54 +0000)
This patch fixes the following error on ia64:
  iommu.c: In function 'init_vtd_hw':
  iommu.c:1831: error: 'nr_ioapics' undeclared (first use in this
  function)

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
xen/drivers/passthrough/vtd/iommu.c

index fd77b014baa2e49e7f40a3926fb4dd7fb4fdb0ae..460e7032ccea172290aa940fda433a2e5dcf2466 100644 (file)
 #include "extern.h"
 #include "vtd.h"
 
+#ifdef __ia64__
+#define nr_ioapics              iosapic_get_nr_iosapics()
+#endif
+
 int nr_iommus;
 static bool_t rwbf_quirk;